import App from './App'
// import Vue from 'vue'
import uviewPlus from 'uview-plus'

import Store from '@/store'

// Vue.use(uView);
// Vue.config.productionTip = false
// App.mpType = 'app'
// const app = new Vue({
//     ...App
// })
// app.$mount()

import { createSSRApp } from 'vue'
// createApp(App).use(router).use(store).mount('#app')
export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus)
  app.use(Store)
  // .use(store)
  return {
    app
  }
}